GtkScrolledWindow: Always uninstall scroll cursor when starting deceleration
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 27 Jul 2016 18:19:30 +0000 (20:19 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Wed, 27 Jul 2016 18:28:23 +0000 (20:28 +0200)
commit9eb356d9f29a881e05937a0089d88154cfc6364a
treee36c1ff00e190eca8b84b8aff74033a05468549a
parentc0f66ed1ea39f5a0b09f87055198921cb718c7ba
GtkScrolledWindow: Always uninstall scroll cursor when starting deceleration

It could be the case that the last scroll event is received long after any
previous scroll event, in this case the last scroll event discards all "old"
scroll events, and scroll_history_finish() returns FALSE because there's no
time/offset deltas in the scroll history.

This is desired so we don't trigger the deceleration effect if there was no
effective velocity, we still must reset the installed scroll cursor, so take
it out of this if() condition.
gtk/gtkscrolledwindow.c